export default {
  created() {
    //#ifdef MP-WEIXIN
    wx.onAppRoute(function (res) {
      let pages = getCurrentPages(),
        view = pages[pages.length - 1];
      if (view) {
        wx.showShareMenu({
          withShareTicket: true,
          menus: ["shareAppMessage", "shareTimeline"],
        });
      }
    });
    //#endif
  },
};
